package com.demo.work_queues;

import com.demo.commons.MqCons;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;

/**
 * @author shenguangyang
 */
@Configuration
public class WorkQueuesMqConfig {

    @Bean
    public Queue workQueues() {
        return new Queue(MqCons.WORK_QUEUE, true, false, false, new HashMap<>());
    }
}
